$def with(posts)

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Simple Blog</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="$config.static/style/admin.css" rel="stylesheet" type="text/css" />
</head>

<body>
  <div class="top-nav">
    <div class="bd">
        <div class="top-nav-ctl">
            <span class="title">博客控制台</span>&nbsp&nbsp&nbsp&nbsp<span class="welcome">欢迎你，管理员！</span>
        </div>

        <div class="top-nav-menu">
            <a href="/admin/post_new">[新增]</a>&nbsp&nbsp<a  href="/login">[退出]</a>
        </div>
    </div>
  </div>
  
  <div class="wapper">
    <!--<div class="header">-->

    <!--</div>-->
    <div class="main">
	<ol>
	  $for post in posts:
	    <li><a href="/admin/post_view/$post.id">$post.title</a>
		<span class="opt"><a href="/admin/post_edit/$post.id"><span class="opt-font">[修改]</span> </a>
		      <a href="/post_delete/$post.id" onclick="return confirm('确认删除？')"><span class="opt-font">[删除]</span></a>
		</span>
	    </li>
	  </ol>
    </div>
    
    <div class="side">
            <div class="cat">
                文章分类
            </div>
            <div class="tab">
                标签
            </div>
    </div>
  </div>
	
    <div class="ft">
	    <div class="line"></div>
	    <div class="cr">&copy2012 <a href="http://www.siunon.com">siunon.com all rights reserved</a></div>
    </div>
  </body>
</html>
    

